import { attachPropertiesToComponent } from '../../utils/attach-properties-to-component'
import { InternalToast } from './toast'
import { config, clear, show } from './methods'
import './toast.scss'

export type {
  ToastProps,
  ToastConfigProps,
  ToastShowProps,
  ToastHandler,
} from './type'

/** only support Imperative */
// export const Toast = {
//   config,
//   clear,
//   show,
// }

// support Imperative and components
export default attachPropertiesToComponent(InternalToast, {
  config,
  clear,
  show,
})
